<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The Yar_Concurrent_Client class</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="yar-client.setopt.html">« Yar_Client::setOpt</a></li>
      <li style="float: right;"><a href="yar-concurrent-client.call.html">Yar_Concurrent_Client::call »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.yar.html">Yar</a></li>
    <li>The Yar_Concurrent_Client class</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="class.yar-concurrent-client" class="reference">

 <h1 class="title">The Yar_Concurrent_Client class</h1>
 

 <div class="partintro"><p class="verinfo">(No version information available, might only be in Git)</p>


  <div class="section" id="yar-concurrent-client.intro">
   <h2 class="title">简介</h2>
   <p class="para">

   </p>
  </div>


  <div class="section" id="yar-concurrent-client.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <span class="modifier">class</span> <strong class="classname">Yar_Concurrent_Client</strong>
     </span>
     {</div>

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 属性 */</div>
    <div class="fieldsynopsis">
     <span class="modifier">static</span>
      <var class="varname"><a href="class.yar-concurrent-client.html#yar-concurrent-client.props.callstack">$<var class="varname">_callstack</var></a></var>;</div>

    <div class="fieldsynopsis"><span class="modifier">static</span>
      <var class="varname"><a href="class.yar-concurrent-client.html#yar-concurrent-client.props.callback">$<var class="varname">_callback</var></a></var>;</div>

    <div class="fieldsynopsis"><span class="modifier">static</span>
      <var class="varname"><a href="class.yar-concurrent-client.html#yar-concurrent-client.props.error-callback">$<var class="varname">_error_callback</var></a></var>;</div>


    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><a href="yar-concurrent-client.call.html" class="methodname">call</a></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type">string</span> <code class="parameter">$uri</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type">string</span> <code class="parameter">$method</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type">array</span> <code class="parameter">$parameters</code><span class="initializer"> = ?</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.callable.html" class="type callable">callable</a></span> <code class="parameter">$callback</code><span class="initializer"> = ?</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.callable.html" class="type callable">callable</a></span> <code class="parameter">$error_callback</code><span class="initializer"> = ?</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type">array</span> <code class="parameter">$options</code><span class="initializer"> = ?</span></span><br>): <span class="type">int</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><a href="yar-concurrent-client.loop.html" class="methodname">loop</a></span>(<span class="methodparam"><span class="type"><a href="language.types.callable.html" class="type callable">callable</a></span> <code class="parameter">$callback</code><span class="initializer"> = ?</span></span>, <span class="methodparam"><span class="type"><a href="language.types.callable.html" class="type callable">callable</a></span> <code class="parameter">$error_callback</code><span class="initializer"> = ?</span></span>): <span class="type">boolean</span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><a href="yar-concurrent-client.reset.html" class="methodname">reset</a></span>(): <span class="type">bool</span></div>

   }</div>


  </div>

  

  <div class="section" id="yar-concurrent-client.props">
   <h2 class="title">属性</h2>
   <dl>
    
     <dt id="yar-concurrent-client.props.callstack"><var class="varname">_callstack</var></dt>

     <dd>

      <p class="para"/>
     </dd>

    
    
     <dt id="yar-concurrent-client.props.callback"><var class="varname">_callback</var></dt>

     <dd>

      <p class="para"/>
     </dd>

    
    
     <dt id="yar-concurrent-client.props.error-callback"><var class="varname">_error_callback</var></dt>

     <dd>

      <p class="para"/>
     </dd>

    
   </dl>

  </div>



 </div>

 















 







<h2>目录</h2><ul class="chunklist chunklist_reference"><li><a href="yar-concurrent-client.call.html">Yar_Concurrent_Client::call</a> — 注册一个并行的服务调用</li><li><a href="yar-concurrent-client.loop.html">Yar_Concurrent_Client::loop</a> — 发送所有注册的并行调用</li><li><a href="yar-concurrent-client.reset.html">Yar_Concurrent_Client::reset</a> — Clean all registered calls</li></ul>
</div>
</div></div></body></html>